package com.zhike.common.repository;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

@Document(collection = "clear_message")
@Data
public class ClearMessage {
    @Id
    private String id;

    // 指纹码
    private String fp;

    // 会话ID
    private String sessionId;

    private String userId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timestamp;

    // 记录状态 0全清除 1 删除
    private Integer status;
}
